//主数据表格配置
export const columns = [
  { title: '采购类型', dataIndex: 'saletype', key: 'saletype', align: 'center' },
  { title: '客户名称', dataIndex: 'customerName', key: 'customerName', align: 'center' },
  { title: '销售单号', dataIndex: 'saleOrderNo', key: 'saleOrderNo', align: 'center' },
  // { title: '销售单名称',dataIndex: 'saleOrderName',key: 'saleOrderName',align: 'center'},
  { title: '客户订单号', dataIndex: 'purOrderNo', key: 'purOrderNo', align: 'center' },
  { title: '含税总价(元)', dataIndex: 'totalPrice', key: 'totalPrice', align: 'center', scopedSlots: { customRender: 'tofixed2' } },
  { title: '订单状态', dataIndex: 'saleOrderState', key: 'saleOrderState', align: 'center', scopedSlots: { customRender: 'saleOrderState' } },

  // { title: '送货类型', dataIndex: 'deliveryType', key: 'deliveryType', align: 'center' },
  // { title: '应收金额(元)', dataIndex: 'receivableAmount', key: 'receivableAmount', align: 'center' },
  // { title: '税费(元)', dataIndex: 'taxes', key: 'taxes', align: 'center' },
  // { title: '已收金额(元)', dataIndex: '	paidAmount', key: '	paidAmount', align: 'center' },
  // { title: '配送状态', dataIndex: 'deliveryState', key: 'deliveryState', align: 'center' },
  // { title: '开票状态', dataIndex: 'invoiceState', key: 'invoiceState', align: 'center' },
  // { title: '销售单生成时间', dataIndex: 'saleOrderCreateTime', key: 'saleOrderCreateTime', align: 'center' },
  // { title: '销售单确认时间', dataIndex: 'saleOrderCfmTime', key: 'saleOrderCfmTime', align: 'center' },
  // { title: '销售单完成时间', dataIndex: 'saleOrderFinTime', key: 'saleOrderFinTime', align: 'center' },
  // { title: '采购单位备注', dataIndex: 'remarks', key: 'remarks', align: 'center' },
  { title: '操作', dataIndex: 'action', key: 'operation', width: 180, align: 'center', scopedSlots: { customRender: 'action' } },
]
//主数据明细columns
export const columnsDetail = [
  { title: '销售单号', dataIndex: 'saleOrderNo', key: 'saleOrderNo', align: 'center', },
  // { title: '销售单名称',dataIndex: 'saleOrderName',key: 'saleOrderName',align: 'center'},
  { title: '采购单号', dataIndex: 'purOrderNo', key: 'purOrderNo', align: 'center' },
  { title: '品名', dataIndex: 'productNameZh', key: 'productNameZh', align: 'center', },
  // { title: '通用名', dataIndex: 'commonName', key: 'commonName', align: 'center' },
  { title: '规格', dataIndex: 'spec', key: 'spec', align: 'center' },
  { title: '型号', dataIndex: 'model', key: 'model', align: 'center' },
  { title: '计量单位', dataIndex: 'measurement', key: 'measurement', align: 'center' },
  { title: '生产企业名称', dataIndex: 'manufacturerZh', key: 'manufacturerZh', align: 'center', },
  { title: '采购数量', dataIndex: 'num', key: 'num', align: 'center', scopedSlots: { customRender: 'num' } },
  { title: '单价(元)', dataIndex: 'iunitprice', key: 'iunitprice', align: 'center', scopedSlots: { customRender: 'tofixed2' } },
  { title: '金额(元)', dataIndex: 'totalPrice', key: 'totalPrice', align: 'center', scopedSlots: { customRender: 'tofixed2' } },
  { title: '状态', dataIndex: 'saleOrderState', key: 'saleOrderState', align: 'center', scopedSlots: { customRender: 'saleOrderState' } },
]

//主数据查询配置
export const q_formInfos = [
  { label: '联系人姓名', name: 'smsName', type: 'input', placeholder: '联系人姓名' },
  { label: ['查询', '重置'], type: 'botton' }
]

export const q_formDatas = {
  smsName: null
}

//添加主数据表单配置
export const s_FormInfo = [
  { label: '联系人姓名', name: 'smsName', type: 'input', placeholder: '请输入联系人姓名' },
  { label: '短信手机号', name: 'smsNum', type: 'input', placeholder: '请输入短信手机号' },
  { label: '通知类型', name: 'smsType', type: 'input', placeholder: '请输入类型' },
  { label: ['保存', '重置'], type: 'botton' }
]
export const s_formDatas = {
  sysSeq: 0,
  pid: '',
  smsName: null,
  smsNum: null,
  smsType: null
}
export const s_rules = {
  smsName: [{ required: true, message: '联系人姓名必填', trigger: 'blur' }],
  smsNum: [{ required: true, message: '短信手机号必填', trigger: 'blur' }],
  // smsType: [{ required: true, message: '通知类型必填', trigger: 'blur' }]
}

//查看明细显示配置
export const infoDatas = [
  { title: '销售单号', id: 'saleOrderNo', value: '' },
  { title: '销售单名称', id: 'saleOrderName', value: '' },
  { title: '采购类型', id: 'saletype', value: '' },
  { title: '客户名称', id: 'customerName', value: '' },
  { title: '客户采购单号', id: 'purOrderNo', value: '' },
  { title: '总价(元)', id: 'totalPrice', value: '', style: 'fontWeight:bolder', toFixed2: true },
  { title: '收货地址', id: 'deliveryAddr', value: '' },
  { title: '收货人', id: 'delivery', value: '' },
  { title: '收货人电话', id: 'deliveryTel', value: '' },
  { title: '订单状态', id: 'saleOrderState', value: '' },
  { title: '采购单位备注', id: 'remarks', value: '' },
  {},
  { title: '销售单生成时间', id: 'saleOrderCreateTime', value: '' },
  { title: '销售单确认时间', id: 'saleOrderCfmTime', value: '' },
  { title: '销售单完成时间', id: 'saleOrderFinTime', value: '' },
  // { title: '送货类型', id: 'deliveryType', value: '' },
  // { title: '应收金额(元)', id: 'receivableAmount', value: '' },
  // { title: '税费(元)', id: 'taxes', value: '' },
  // { title: '已收金额(元)', id: '	paidAmount', value: '' },
  // { title: '配送状态', id: 'deliveryState', value: '' },
  // { title: '开票状态', id: 'invoiceState', value: '' },
]
